
<h2>검경관리 &gt; 검경현황조회</h2>
<div class="content">
  <section class="accordion">
    <h3>검색조건</h3>
    <div>
      <form id="form1" name="form1" method="post" action="">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="searchTb">
          <tr>
            <th scope="row">발생지</th>
            <td><select name="select" id="select">
                <option selected="selected">전체</option>
                <option>서울특별시</option>
                <option>경기도</option>
                <option>강원도</option>
              </select>
              <select name="select2" id="select2">
                <option>전체</option>
                <option>유성구</option>
                <option>서구</option>
                <option>동구</option>
              </select>
              <select name="select3" id="select3">
                <option>전체</option>
                <option>갈마동</option>
                <option>둔산동</option>
                <option>월평동</option>
              </select></td>
            <th scope="row">수종</th>
            <td><select name="select5" id="select5">
                <option selected>전체</option>
                <option>소나무</option>
                <option>참나무</option>
              </select></td>
          </tr>
          <tr>
            <th scope="row">경급</th>
            <td><select name="select4" id="select4">
                <option selected>전체</option>
                <option>나무주사</option>
                <option>항공</option>
                <option>지상</option>
              </select></td>
            <th scope="row">감염목 구분</th>
            <td><select name="select4" id="select7">
                <option>전체</option>
                <option>감염목</option>
                <option>고사목</option>
              </select></td>
          </tr>
          <tr>
            <th scope="row">시료채취유무</th>
            <td><input type="radio" name="radio" id="radio7" value="radio" />
              예
              <input type="radio" name="radio" id="radio8" value="radio" />
              아니오
              <label for="radio8"></label></td>
            <th scope="row">검경요청여부</th>
            <td><input type="radio" name="radio" id="radio9" value="radio" />
              예
              <input type="radio" name="radio" id="radio10" value="radio" />
              아니오
              <label for="radio10"></label></td>
          </tr>
          <tr>
            <th scope="row">예찰자명</th>
            <td><input name="textfield3" type="text" class="" id="textfield3" /></td>
            <th scope="row">예찰자직급</th>
            <td><input name="textfield4" type="text" class="" id="textfield4" /></td>
          </tr>
          <tr>
            <th rowspan="2" scope="row">기간설정</th>
            <td colspan="3"><input type="radio" name="radio" id="radio3" value="radio" />
              <label for="radio3">예찰일</label>
              <input type="radio" name="radio" id="radio4" value="radio" />
              <label for="radio4">조사완료일</label></td>
          </tr>
          <tr>
            <td colspan="3"><label for="textfield"></label>
              <input name="textfield" type="text" class="datepicker" id="textfield" />
              ~
              <input name="textfield2" type="text" class="datepicker" id="textfield2" /></td>
          </tr>
        </table>
        <div class="btn_dp">
          <button type="button">초기화</button>
          <button type="button" onClick="loadData()">조회</button>
        </div>
      </form>
    </div>
  </section>
    <section class="">
    <div class="btn_dp">
      <button type="button">엑셀 다운로드</button>
      <a href="layerPopup/검경요청.html" class="btn layer">검경요청</a> </div>
    <table id="jsonmap">
    </table>
    <div id="pjmap"> </div>
  </section>
  <section>
    <div>
     <!-- <div class="btn_fr">
        <button type="button">엑셀 다운로드</button>
        <a href="layerPopup/검경요청.html" class="btn layer">검경요청</a> 
      </div>
      
      <div style="clear:both">
        <table id="jsonmap">
        </table>
        <div id="pjmap"> </div>
      </div> -->
      <script type="text/javascript">

		jQuery("#jsonmap").jqGrid({        
			url:'/sample/data4.json',
			datatype: "json",
			colModel:[
				 {name:'발생조사관리번호' ,	width:100, 	align:"center"}
				,{name:'관리 기관구분' ,	width:55, 	align:"center"}
				,{name:'발생X좌표' ,	width:70, 	align:"center",editable:true}
				,{name:'발생Y좌표' ,	width:70, 	align:"center"}
				,{name:'발생지' ,	width:200, 	align:"left"}
				,{name:'지번' ,	width:30, 	align:"center"}
				,{name:'기타' ,	width:30, 	align:"center"}
				,{name:'경급' ,	width:100, 	align:"center"}
				,{name:'감염목구분' ,	width:100, 	align:"center"}
				,{name:'시료채취유무' ,	width:100, 	align:"center"}
				,{name:'검경요청여부' ,	width:100, 	align:"center"}
				,{name:'예찰자직급' ,	width:100, 	align:"center"}
				,{name:'예찰자성명' ,	width:100, 	align:"center"}
				,{name:'예찰일' ,	width:100, 	align:"center"}
				,{name:'입력자' ,	width:100, 	align:"center"}
				,{name:'입력일시' ,	width:100, 	align:"center"}
				,{name:'시료송부일자' ,	width:100, 	align:"center"}
				,{name:'시료도착일자' ,	width:100, 	align:"center"}
				,{name:'검경일자' ,	width:100, 	align:"center"}
				,{name:'검경결과통보일자' ,	width:100, 	align:"center"}
				,{name:'검경기관' ,	width:100, 	align:"center"}
				,{name:'검경자' ,	width:100, 	align:"center"}
				,{name:'검경결과' ,	width:100, 	align:"center"}
			]
			, rowNum:20
			, rowList:[10,20,30]
			, pager: '#pjmap'
			, viewrecords: true
			, height: '300'
			, caption : '발생조사 목록'
			, multiselect: true
			, autowidth : true
			, shrinkToFit : false
			, onSelectRow:function(id){
				//var ret = jQuery("#jsonmap").jqGrid('getRowData',id);
				//alert(ret.발생X좌표);
				//rowId =jQuery("#jsonmap").jqGrid('getGridParam','selarow');
				rowIds =jQuery("#jsonmap").jqGrid('getGridParam','selarrrow'); // multi select sel 
			}
			
		});
		jQuery("#jsonmap").jqGrid('navGrid','#pjmap',{edit:false,add:false,del:false});
		jQuery("#jsonmap").jqGrid("setFrozenColumns");
		
		//jQuery("#jsonmap").jqGrid('getGridParam','selarrow');
		//jQuery("#jsonmap").getGridParam('selarrow')
		</script> 
    </div>
  </section>
    

</div>
